Skip to content

Stabilize integration tests: fix flaky heartbeat test#417

Draft
dkropachev wants to merge 1 commit intomasterfrom
dk/stabilize-integration-tests
Draft

Stabilize integration tests: fix flaky heartbeat test#417
dkropachev wants to merge 1 commit intomasterfrom
dk/stabilize-integration-tests

Conversation

@dkropachev
Copy link
Contributor

@dkropachev dkropachev commented Feb 16, 2026

Summary

  • test_heartbeat: Replace flaky connection-count assertion with direct heartbeat timeout log check. The original test's total_connections metric could fluctuate due to reconnection attempts, and execute_async calls could interfere with idle-connection heartbeat detection.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have enabled appropriate tests in Makefile in {SCYLLA,CASSANDRA}_(NO_VALGRIND_)TEST_FILTER.

@dkropachev dkropachev marked this pull request as draft February 16, 2026 12:56
Replace flaky connection-count assertion in test_heartbeat.cpp with
direct heartbeat timeout log check. The original test's total_connections
metric could fluctuate due to reconnection attempts, and execute_async
calls could interfere with idle-connection heartbeat detection.
@dkropachev dkropachev changed the title Stabilize integration tests Stabilize integration tests: fix flaky heartbeat test Feb 16, 2026
@dkropachev dkropachev force-pushed the dk/stabilize-integration-tests branch from 1db29af to 11c4bda Compare February 16, 2026 23:31
@wprzytula wprzytula added the area/testing Related to unit/integration testing label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing Related to unit/integration testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants